<?php
include "inc/funcoes.inc";
if(isset($_REQUEST['pag']))
{
	if(trim($_REQUEST['pag'])!="")
	{
		//include $urlSite.trim($_REQUEST['pag'])."?lang=".$lang;
		header('Location: '.$urlSite.trim($_REQUEST['pag']).'?lang='.$lang);
	} else {
		header('Location: '.$urlSite.'main.php?lang='.$lang);
		//include $urlSite."main.php?lang=".$lang;
	}
} else {
	//include $urlSite."main.php?lang=".$lang;
	header('Location: '.$urlSite.'main.php?lang='.$lang);
}

?>


